package com.black.platform.dictionary.service.bz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.black.common.web.PageQuery;
import com.black.platform.dictionary.po.Dictionary;
import java.util.List;

public interface DictionaryService extends IService<Dictionary> {


    IPage<Dictionary> search(PageQuery<Dictionary> searchVo);

    List<Dictionary> getAllValidDictionaryList();

    /**
     * 通过类型代码获取字典集
     * @param codeType 类型代码
     * @param isIncludeInvalid 是否包含无效数据
     * @return 字典集
     */
    List<Dictionary> getByCodeType(String codeType, boolean isIncludeInvalid);

    List<Dictionary> getAllCodeType();

}
